function getCookie() {
    const strCookie=document.cookie;
    const arrCookie=strCookie.split(";");
    let isLogin;
    for(let i=0;i<arrCookie.length;i++){
        //去掉两端空格
        let cookie=arrCookie[i].replace(/^\s+|\s+$/g,"");
        if(cookie.indexOf("BLOG_TICKET=")===0){
            isLogin=true;
            return cookie;
        }
    }
    isLogin=false;
    return;
}

export default getCookie;
